<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post">
    {% csrf_token %}
<p>这是一个测试</p>
{{form.user_name}}
     {{ form.user_name.errors.0 }}
{{form.password}}
    {{ form.password.errors.0 }}
    <button type="submit" >登录</button>
    </form>
</body>
</html>